package L5;
import java.util.Scanner;
import java.io.File;
import java.io.FileNotFoundException;

public class TestFile {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(new File("test.txt"))) {
            while (sc.hasNextLine()) {
                System.out.println(sc.nextLine());
            }
        } catch (FileNotFoundException e) {
            System.out.println("File Not Found");
        }
       
    }
}
